﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace SelfViewer
{
    public partial class SelfViewer : Form
    {
        private String[] args;
        public SelfViewer(String[] args)
        {
            this.InitializeComponent();
            this.args = args;
            this.Shown += new EventHandler(this.Form1_Shown);

        }

        private void Form1_Shown(Object sender, EventArgs e)
        {
            if (args.Length > 0)
            {
                StreamReader sr = new StreamReader(args[0]);
                String s = sr.ReadToEnd();
                sr.Close();
                this.elookcontrol.loadContentBase64(s);
            }
        }
    }
}
